package com.jiutong.meipenggang.adapters;

import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jiutong.meipenggang.R;

import java.util.List;

/**
 * Created by bdf on 2017/9/28.
 */

public class NewPeopleActAdapter extends BaseQuickAdapter {
    public NewPeopleActAdapter(Context context, int layoutResId, List data) {
        super(context, layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Object o) {
        final  ImageView iv = (ImageView) baseViewHolder.convertView.findViewById(R.id.iv_item_newact_btn);
        iv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                iv.setImageResource(R.mipmap.btn_assets_receive);
            }
        });

    }
}
